namespace Cos.Core.NHibernate
{
    public class SubmissionValueItemDataModel
    {
        #region Constructors and Destructors

        public SubmissionValueItemDataModel() {}

        #endregion

        #region Properties

        public virtual int Id { get; set; }

        public virtual int SubmissionValueId { get; set; }

        public virtual string Value { get; set; }

        #endregion

        #region Object Overrides

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as SubmissionValueItemDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }

        #endregion
    }
}